package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class NanDongJzHouseRowMapper  implements RowMapper<NanDongJzHouse> {
    @Override
    public NanDongJzHouse mapRow(ResultSet resultSet, int i) throws SQLException {
        NanDongJzHouse nd = new NanDongJzHouse();
        nd.setId(resultSet.getInt("id"));
        nd.setXq_name(resultSet.getString("xq_name"));
        nd.setHouse_nature(resultSet.getString("house_nature"));
        nd.setAddress(resultSet.getString("address"));
        nd.setFour_address(resultSet.getString("four_address"));
        nd.setFrim_name(resultSet.getString("frim_name"));
        nd.setManager(resultSet.getString("manager"));
        nd.setTel(resultSet.getString("tel"));
        nd.setPhone(resultSet.getString("phone"));
        nd.setJwh_name(resultSet.getString("jwh_name"));
        nd.setLng(resultSet.getString("lng"));
        nd.setLat(resultSet.getString("lat"));
        return nd;
    }
}
